# -*- coding: UTF-8 -*-
import traceback
from server.model import Base
from sqlalchemy.sql.functions import now
from sqlalchemy import Column, String, DateTime, Boolean, BigInteger, SmallInteger


class SysDictionaries(Base):
    __tablename__ = 'sys_dictionaries'
    id = Column(BigInteger, primary_key=True, nullable=False, doc='')
    name = Column(String(191),    doc='字典名（中）')
    type = Column(String(191),    doc='字典名（英）')
    status = Column(SmallInteger,    doc='状态')
    desc = Column(String(191),    doc='描述')
    created_at = Column(DateTime, default=now(), doc='')
    updated_at = Column(DateTime, default=now(), doc='')
    deleted_at = Column(DateTime, index=True, doc='')
    deleted = Column(Boolean, default=0, doc='')